﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web
{
    public partial class _default : System.Web.UI.Page
    {
       public List<Model.tb_message> mzbklist = new List<Model.tb_message>();
       public List<Model.tb_message> xwzxlist = new List<Model.tb_message>();
       public List<Model.tb_message> mzwdlist = new List<Model.tb_message>();
       public List<Model.tb_message> lyynlist = new List<Model.tb_message>();
       public List<Model.tb_message> whyclist = new List<Model.tb_message>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (true)
                {
                    mzbklist = Common.SqlExption.GetList<Model.tb_message>().Where(c => c.mes_type_id.Equals(6)).Take(5).ToList();
                    xwzxlist = Common.SqlExption.GetList<Model.tb_message>().Where(c => c.mes_type_id.Equals(2)).Take(5).ToList();
                    mzwdlist = Common.SqlExption.GetList<Model.tb_message>().Where(c => c.mes_type_id.Equals(3)).Take(5).ToList();
                    lyynlist = Common.SqlExption.GetList<Model.tb_message>().Where(c => c.mes_type_id.Equals(4)).Take(5).ToList();
                    whyclist = Common.SqlExption.GetList<Model.tb_message>().Where(c => c.mes_type_id.Equals(5)).Take(5).ToList();
                }
            }
        }
    }
}